package com.goodving.guli.utility;

import java.text.DecimalFormat;
import java.util.Random;

/**
 * Created by Administrator on 2015-11-16.
 */
public class C1478r {
    public static boolean m12046a(String str) {
        if (str == null || str.isEmpty() || str.equals(C1546j.f6331b)) {
            return true;
        }
        return false;
    }

    public static String m12045a(int i) {
        String str = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789";
        Random random = new Random();
        StringBuffer stringBuffer = new StringBuffer();
        for (int i2 = 0; i2 < i; i2++) {
            stringBuffer.append(str.charAt(random.nextInt(62)));
        }
        return stringBuffer.toString();
    }

    public static long m12043a(long j) {
        return (((((((((255 & j) >> 0) << 56) | (((65280 & j) >> 8) << 48)) | (((16711680 & j) >> 16) << 40)) | (((4278190080L & j) >> 24) << 32)) | (((1095216660480L & j) >> 32) << 24)) | (((280375465082880L & j) >> 40) << 16)) | (((71776119061217280L & j) >> 48) << 8)) | (((-72057594037927936L & j) >> 56) << 0);
    }

    public static String m12044a(double d) {
        return new DecimalFormat("#0.0").format(d);
    }

    public static String m12047b(double d) {
        return C1478r.m12044a(d / 1000.0d);
    }

    public static String m12049c(double d) {
        if (d > 100.0d) {
            return String.valueOf((int) d);
        }
        return C1478r.m12044a(d);
    }

    public static String m12050d(double d) {
        return C1478r.m12044a(3.6d * d);
    }

    public static String m12048b(int i) {
        int i2 = i / 60;
        String str = "";
        if (i2 < 60) {
            return String.valueOf(i2);
        }
        int i3 = i2 / 60;
        i2 %= 60;
        if (i2 < 10) {
            return i3 + ":0" + i2;
        }
        return i3 + ":" + i2;
    }
}
